home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / VBSamples / DirectPlay / SimplePeer / readme.txt < prev    next >
Text File  |  2001-10-10  |  1KB  |  39 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: VB Simple Peer Sample
  4. // 
  5. // Copyright (C) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   Once a player hosts or connects to a session, the players can make funny faces.
  13.   
  14. Path
  15. ====
  16.   Source: DXSDK\Samples\Multimedia\VBSamples\DirectPlay\SimplePeer
  17.  
  18.   Executable: DXSDK\Samples\Multimedia\VBSamples\DirectPlay\Bin
  19.  
  20. User's Guide
  21. ============
  22.   Select the protocol to use, enter your name.  Choose to search for sessions or create
  23.   your own, or to wait for a lobby session.  Once connected, make funny faces.
  24.  
  25. Programming Notes
  26. =================
  27.   * The "Make Face" key is pressed.  See cmdMakeFace_Click.
  28.         1. Fills out a byte array using 1 since this is the only message to send.
  29.         2. Calls DirectPlay8Peer.SendTo with the byte array.  It passes 
  30.            DPNID_ALL_PLAYERS_GROUP so this message goes to everyone. 
  31.    
  32.   * Handle DirectPlay system messages.  See implemented DirectPlay8Event interfaces
  33.  
  34.         The Chat sample handles the typical messages as described in the 
  35.         SimplePeer programming notes, and in addition:
  36.         
  37.         - Upon Receive event: 
  38.             *Get the name of the person sending the event, and update UI
  39.